<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>jQuery基本语法</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<h1>jQuery基本语法</h1>
<hr>

<div id="box1">

</div>

<script>
    $(function(){
        $("#box1").text('hello,jQuery!');
        //效果等同于
        //document.getElementById("box1").innerText='hello,jQuery!';
    });
</script>
</body>
</html>
